package com.dmcb.trade.business.crawlers.article;

import com.dmcb.trade.business.constants.CrawlConstant;
import org.springframework.stereotype.Service;

/**
 * 搜狐文章解析
 * Created by long on 2016/3/11.
 */
@Service
public class LifeTimesParser extends BaseParser {

    /**
     * 网站URL网址
     *
     * @return 链接
     */
    @Override
    protected String url() {
        return CrawlConstant.LIFE_TIMES_URL;
    }

    /**
     * 获取标题选择器
     *
     * @return 标题选择器
     */
    @Override
    protected String titleSelect() {
        return "div.list_text>h1";
    }

    @Override
    protected String dateSelect() {
        return "div.mess>span";
    }

    @Override
    protected String bodySelect() {
        return "div#con";
    }

    @Override
    protected String platform() {
        return "生命时报";
    }

}
